package com.gdsdxy.bookshop.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@ApiModel("订单表")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("orders")
public class Order {
    @ApiModelProperty("订单编号")
    private Integer orderid;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("用户编号")
    private Integer userid;

    @ApiModelProperty("书籍编号")
    private Integer bookid;

    @ApiModelProperty("订单总额")
    private Double amount=0D;

    @ApiModelProperty("订单状态")
    private Integer state;

}
